<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>

    <title>登录</title>
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" />
    <!-- Custom styles for this template -->
    <link rel="stylesheet" th:href="@{/css/admin/signin.css}" />

</head>

<body>
<div class="container" style="width: 500px;height: 400px;background: white;">
        <form class="form-signin" th:action="@{/doLogin}" th:method="post">
            <h2 class="form-signin-heading" style="margin-left: 20%">T-Blog | 登录</h2>
            <p style="color: red;margin-left: 28%;" th:text="${error_info}"></p>
            <div style="margin-top: 10%">
                <label for="inputEmail" style="color: #8699A4">用户名:</label>
                <input id="inputEmail" name="userName" class="form-control" placeholder="请输入用户名">
            </div>
            <div style="margin-top: 10%;">
                <label for="inputPassword" style="color: #8699A4">密码:</label>
                <input type="password" id="inputPassword" name="passWord" class="form-control" placeholder="请输入密码">
            </div>
            <div style="margin-top: 15%">
                <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
            </div>

        </form>

</div>
</body>

</html>
